package com.haiyangwang1.lesson5;

public class Dog extends Animal{
    public Dog(String food,String sound){
        super(food,sound);
    }
    @Override
    public void eat(){
        System.out.println("小狗爱吃"+this.getFood());
    }
    public void sound(){
        System.out.println("小狗狗"+this.getSound());
    }
    public void walk(){
        System.out.println("小狗狗喜欢遛弯");
    }
}
